//
//  ViewController.m
//  testStory
//
//  Created by mac on 15-11-17.
//  Copyright (c) 2015年 yb. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()
@property (weak, nonatomic) IBOutlet UIButton *btn;

@end

@implementation ViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
}

//- (IBAction)onClick:(id)sender {
//    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"温馨提示" message:@"您点击了按钮" delegate:nil cancelButtonTitle:@"取消" otherButtonTitles:@"确定", nil];
//    [alert show];
//} 

- (IBAction)n:(id)sender {
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"温馨提示" message:@"你确定退出？" delegate:nil cancelButtonTitle:@"NO" otherButtonTitles:@"YES", nil];
    [alert show];
}







- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
